# conding = utf-8
from selenium.webdriver.common.by import By


leftmenu_sys = By.XPATH, "//li//span[text()='仓库管理']"
leftmenu = By.XPATH, "/html/body/div[1]/section/aside/div/ul/li[5]/ul/li[5]/a"

#第一个查询框
number = By.XPATH,"/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[1]/form/div/div[1]/div/div[2]/div/span/input"
#第二个查询框
commoditys = By.XPATH,"//*[@id='app']/section/section/main/div[2]/div/div/div/div/div[1]/form/div/div[2]/div/div[2]/div/span/input"
#时间查询
timex = By.XPATH,"//*[@id='app']/section/section/main/div[2]/div/div/div/div/div[1]/form/div/div[3]/div/div[2]/div/span/span/span"
#展开
aidwn = By.XPATH,"//*[@id='app']/section/section/main/div[2]/div/div/div/div/div[1]/form/div/div[3]/div/div[2]/div/span/span/span/input[1]"
zhankai = By.XPATH,"//div[@class='ant-calendar-date-panel']/div[1]/div[2]/div[2]/table/tbody/tr[1]/td[7]"
zhankaie = By.XPATH,"//div[@class='ant-calendar-date-panel']/div[2]/div[2]/div[2]/table/tbody/tr[4]/td[7]"
#往下
wangxia = By.XPATH,"//*[@id='app']/section/section/main/div[2]/div/div/div/div/div[1]/form/div/span/div/a"
#第四个输入框
tieuj = By.XPATH,"//*[@id='app']/section/section/main/div[2]/div/div/div/div/div[1]/form/div/div[4]/div/div[2]/div/span/div/div/div"
#第五个输入框
bjfue = By.XPATH,"//*[@id='app']/section/section/main/div[2]/div/div/div/div/div[1]/form/div/div[5]/div/div[2]/div/span/div/div/div"
#选择仓库
vqofn = By.XPATH,"//*[@id='fd9b2fdc-f8b8-4ddc-cd8f-559d0b9d85b7']/ul/li[1]"
#操作员
heiom = By.XPATH,"//*[@id='app']/section/section/main/div[2]/div/div/div/div/div[1]/form/div/div[6]/div/div[2]/div/span/div/div/div"
#选择操作员
qweasd = By.XPATH,"//*[@id='a2643d60-173f-413d-9d91-486c0c3c4eb8']/ul/li[2]"
#关联单据
guanju = By.XPATH,"//*[@id='app']/section/section/main/div[2]/div/div/div/div/div[1]/form/div/div[7]/div/div[2]/div/span/input"
#单据查询
danjucha = By.XPATH,"//*[@id='app']/section/section/main/div[2]/div/div/div/div/div[1]/form/div/div[8]/div/div[2]/div/span"
#审核
shenhe = By.XPATH,"/html/body/div[7]/div/div/div/ul/li[2]"
#单据备注
beizhu = By.XPATH,"//*[@id='app']/section/section/main/div[2]/div/div/div/div/div[1]/form/div/div[9]/div/div[2]/div/span/input"
#点击查询
queryx = By.XPATH,"//*[@id='app']/section/section/main/div[2]/div/div/div/div/div[1]/form/div/span/div/button[1]"
reset_select = By.XPATH,"//button[span='重 置']"
#单据编号的查询结果
resultx = By.XPATH,"//*[@id='app']/section/section/main/div[2]/div/div/div/div/div[3]/div/div/div/div/div/div/div[2]/table/tbody/tr[1]/td[2]"



#新增
xingzhen = By.XPATH,"//*[@id='app']/section/section/main/div[2]/div/div/div/div/div[2]/button[1]"
scommodity = By.XPATH,"//*[@id='organId']/div"

wenhao = By.XPATH,"/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[4]/div/div/div[2]/div/div[2]/div[2]/div[1]/div/form/div[2]/div/div[2]/div[2]/div/div[2]/div/div[4]/span/div/span/button"
#衣服输入框
clothese = By.XPATH,"//input[@placeholder='条码、名称、规格、型号、颜色']"
buttent = By.XPATH,"//div[@aria-labelledby='rcDialogTitle6']//button[span[text()='查 询']]"
buttente = By.XPATH,"//div[@aria-labelledby='rcDialogTitle8']//button[span[text()='查 询']]"
#暂无数据
nodata = By.XPATH,"//p[text()='暂无数据']"
# #新增
# xingzhen = By.XPATH,"//*[@id='app']/section/section/main/div[2]/div/div/div/div/div[2]/button[1]"
# scommodity = By.XPATH,"//*[@id='organId']/div"
#
# wenhao = By.XPATH,"/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[4]/div/div/div[2]/div/div[2]/div[2]/div[1]/div/form/div[2]/div/div[2]/div[2]/div/div[2]/div/div[4]/span/div/span/button"
# #衣服输入框
# clothese = By.XPATH,"//input[@placeholder='条码、名称、规格、型号、颜色']"
# buttent = By.XPATH,"//div[@aria-labelledby='rcDialogTitle1']//button[span[text()='查 询']]"
# #暂无数据
# nodata = By.XPATH,"//p[text()='暂无数据']"
#新增
addqer = By.XPATH,"//div[@aria-labelledby='rcDialogTitle6']/div/div[2]/div[2]/div[1]/div[1]/div[1]/form[1]/div[1]/span/div/button[3]"
addqere = By.XPATH,"//div[@aria-labelledby='rcDialogTitle8']/div/div[2]/div[2]/div[1]/div[1]/div[1]/form[1]/div[1]/span/div/button[3]"
#新增里面的关闭页面
close_add = By.XPATH,"//button[span='关 闭']"
#关闭ESC
esc_add = By.XPATH,"//button[span='关闭(ESC)']"
#主添加里面的取消
zhu_add = By.XPATH,"//button[span='取 消']"
#正确的打钩  112313333333333333333333333333333
check_adde = By.XPATH,"//div[@class='ant-col ant-col-sm-24 ant-col-md-24']//table//tr[2]//td[1]/span"

#消除提示框
elrompts = By.XPATH,"//a[text()='×']"
#输入框请输入名称
peasename = By.XPATH,"//input[@placeholder='请输入名称']"
#输入框请输入单位
pleaseunit = By.XPATH,"//input[@placeholder='输入单位']"
#添加里面的点击确定
addconfirmation = By.XPATH,"//div[@data-v-dfd210ea]//button[contains(@class, 'ant-btn-primary') and span[text()='确 定']]"
cancel_toexamine = By.XPATH,"//button[span='取 消']"
#关闭
sdp_copy = By.XPATH,"//button[span='关闭(ESC)']"
#点击查询
dinchi = By.XPATH,"//div[@class='ant-col ant-col-sm-24 ant-col-md-24']/div/form/div/span//button[1]"
#输入行
input_rline = By.XPATH,"//input[@placeholder='条码、名称、规格、型号、颜色']"
#插入行
insertt = By.XPATH,"/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[4]/div/div/div[2]/div/div[2]/div[2]/div[1]/div/form/div[2]/div/div[1]/div[2]/div/button"
#点击放大机
magnifiert = By.XPATH,"/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[4]/div/div/div[2]/div/div[2]/div[2]/div[1]/div/form/div[2]/div/div[2]/div[2]/div/div[2]/div[2]/div[4]/span/div/span/button"
#输入框
srkone = By.XPATH,"/html/body/div[6]/div/div[2]/div/div[2]/div[2]/div[1]/div/div/form/div/div[1]/div/div[2]/div/span/input"
#调入仓库
select_warehouse = By.XPATH,"/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[4]/div/div/div[2]/div/div[2]/div[2]/div[1]/div/form/div[2]/div/div[2]/div[2]/div/div[2]/div/div[11]/span/div/div/div"
#点击选择
selectnt = By.XPATH,"(//tr[contains(@class, 'ant-table-row')])[last()]/td[1]/span"
#单击确定
singlet_click = By.XPATH,"(//button[span[text()='确 定']])[3]"
#打钩
dago = By.XPATH,"(//tr[td[@class='ant-table-selection-column']]//following-sibling::tr[td[@class='ant-table-selection-column']])[last()]/td[1]/span/label"
#点击确定
addtein = By.XPATH,"//div[@aria-labelledby='rcDialogTitle1']/div/div/div[3]//button[2]"
#点击保存
clicttosave = By.XPATH,"/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[4]/div/div/div[2]/div/div[2]/div[3]/button[3]"
#结果
results = By.XPATH,"//div[@aria-labelledby='rcDialogTitle1']/div/div[2]/div[3]/button[4]"
#选择第二个商品
choose_second = By.XPATH,"/html/body/div[7]/div/div[2]/div/div[2]/div[2]/div[1]/div/div/form/div/div[1]/div/div[2]/div/span/input"




#添加的断言
assertion_add = By.XPATH,"//input[@id='number']"
#商品信息
information_add = By.XPATH,"/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[3]/div/div/div/div/div/div/div[2]/table/tbody/tr[1]/td[3]"
#断言
assert_editing = By.XPATH,"/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[3]/div/div/div/div/div/div/div[2]/table/tbody/tr[1]/td[7]"
#单击确定
sure_wareho = By.XPATH,"(//button[span[text()='确 定']])[2]"






#查看
#反审核
see_sernt = By.XPATH,"/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[3]/div/div/div/div/div/div/div[2]/table/tbody/tr[1]/td[2]/span/a[1]"
#反审核确定
cancel_qwe_id = By.XPATH,"/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[5]/div/div/div[2]/div/div[2]/div[3]/button[3]"
#判断详情弹出是否出现
does_it_appear = By.XPATH,"//div[@class='j-modal-title-row ant-row-flex']//div[@class='left ant-col' and text()='其它入库-详情']"

#选中
choice = By.XPATH,"//*[@id='app']/section/section/main/div[2]/div/div/div/div/div[3]/div/div/div/div/div/div/div[2]/table/tbody/tr[1]/td[1]/span/label/span"
#批量操作
batch_operation = By.XPATH,"/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[2]/button[2]"
#反审核
anti_audit = By.XPATH,"(//li[contains(text(), '反审核')])[1]"
#点击确定
addtein_qwe = By.XPATH,"//div[@class='ant-modal ant-modal-confirm ant-modal-confirm-confirm']//button[span[text()='确 定']]"
#再次点击审核
again_ok = By.XPATH,"//li[text()='审核']"
#结果
confirm_operation = By.XPATH,"//span[@class='ant-modal-confirm-title' and text()='确认操作']"


#编辑
#点击编辑
edit_ion = By.XPATH,"/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[3]/div/div/div/div/div/div/div[2]/table/tbody/tr[1]/td[2]/span/a[2]"
#编辑数量
quantityq = By.XPATH,"/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[4]/div/div/div[2]/div/div[2]/div[2]/div[1]/div/form/div[2]/div/div[2]/div[2]/div/div[2]/div[1]/div[13]/label/input"
#保存的结果
save_the_results = By.XPATH,"/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[4]/div/div/div[2]/div/div[2]/div[2]/div[1]/div/form/div[2]/div/div[2]/div[2]/div/div[2]/div[1]/div[13]/label/input"
#取消
quxi_toexamine = By.XPATH,"//button[span='取 消']"
#编辑的结果
qweret = By.XPATH,"/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[3]/div/div/div/div/div/div/div[2]/table/tbody/tr[1]/td[8]"
##保存
ok_qeew = By.XPATH,"/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[4]/div/div/div[2]/div/div[2]/div[3]/button[3]"
#第二个输入框
ert_qeewe = By.XPATH,"/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[4]/div/div/div[2]/div/div[2]/div[2]/div[1]/div/form/div[2]/div/div[2]/div[2]/div/div[2]/div[2]/div[13]/label/input"
#添加的断言
assertion_add = By.XPATH,"//input[@id='number']"
#商品信息
information_add = By.XPATH,"/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[3]/div/div/div/div/div/div/div[2]/table/tbody/tr[1]/td[3]"
#断言
assert_editing = By.XPATH,"/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[3]/div/div/div/div/div/div/div[2]/table/tbody/tr[1]/td[7]"




#复制
#点击复制
fuz = By.XPATH,"/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[3]/div/div/div/div/div/div/div[2]/table/tbody/tr[1]/td[2]/span/a[3]"
#插入行
insert = By.XPATH,"/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[4]/div/div/div[2]/div/div[2]/div[2]/div[1]/div/form/div[2]/div/div[1]/div[2]/div/button"
#点击放大机
magnifier = By.XPATH,"/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[4]/div/div/div[2]/div/div[2]/div[2]/div[1]/div/form/div[2]/div/div[2]/div[2]/div/div[2]/div[3]/div[4]/span/div/span/button"
#输入框
srkon = By.XPATH,"//input[@placeholder='条码、名称、规格、型号、颜色']"
#点击查询
dinchi = By.XPATH,"//div[@class='ant-col ant-col-sm-24 ant-col-md-24']/div/form/div/span//button[1]"
qwert = By.XPATH,"/html/body/div[5]/div/div[2]/div/div[2]/div[2]/div[1]/div/div/form/div/div[1]/div/div[2]/div/span/input"
#打钩
hook_up = By.XPATH,"(//tr[td[@class='ant-table-selection-column']]//following-sibling::tr[td[@class='ant-table-selection-column']])[last()]/td[1]/span/label"
#单击确定
click_ok = By.XPATH,"/html/body/div[4]/div/div[2]/div/div[2]/div[3]/div/button[2]"
#点击保存
click_ko = By.XPATH,"/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[4]/div/div/div[2]/div/div[2]/div[3]/button[3]"
#请选择调拔仓库
qweasdzxc = By.XPATH,"/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[4]/div/div/div[2]/div/div[2]/div[2]/div[1]/div/form/div[2]/div/div[2]/div[2]/div/div[2]/div[2]/div[11]/span/div/div/div/div[1]"
#复制结果
fuzyj = By.XPATH,"/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[4]/div/div/div[2]/div/div[2]/div[1]/div/div/div[1]"
#点击查询
dinchid = By.XPATH,"//div[@class='ant-col ant-col-sm-24 ant-col-md-24']/div/form/div/span//button[1]"
#输入行
input_rlinee = By.XPATH,"//input[@placeholder='条码、名称、规格、型号、颜色']"


#删除
delete_prompt_box = By.XPATH,"/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[3]/div/div/div/div/div/div/div[2]/table/tbody/tr[1]/td[2]/span/a[4]"
#点击删除
click_to_delete = By.XPATH,"//div[@class='ant-popover ant-popover-placement-top']/div/div/div/div[2]/button[2]"
#删除结果
delete_result = By.XPATH,"/html/body/div[6]/div/div/div/div[2]/div/div[1]/div"
